{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
<script src="{$siteroot}/includes/js/myaccount.js" type="text/javascript"></script>
{/strip}
{include file=$header_end}
   <!-- MIDDLE CONTAIN GOES HERE -->
<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">            	                
            {if $msg}{$msg}{/if}
            	<section class="title_box">
                    <h4>{if $smarty.get.id1 neq ''} Edit {else}Upload{/if} Work Photo</h4>
                    <section class="clear"></section>
                </section>
                <form method="post" action="" {if $userPhotoDetArray.photo_id neq''} name="frmMngWorkPhotoEdit" id="frmMngWorkPhotoEdit" {else} name="frmMngWorkPhoto" id="frmMngWorkPhoto" {/if} enctype="multipart/form-data">                
                 <input type="hidden" id="photo_id" name="photo_id" value="{$userPhotoDetArray.photo_id}"  />

                <section class="profile_wrapp">
                
	                <dl>
                        <dt><label>Title: </label></dt>
                        <dd><input type="text" class="input" name="title" id="title" value="{if $userPhotoDetArray.title}{$userPhotoDetArray.title}{else}{$smarty.post.title}{/if}"></dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>                    
                    
	                {if $userPhotoDetArray.image}
                    <dl>
                    	<dt>Privious Photo: </dt>
                        <dd>
	                        <img src="{$siteroot}/includes/image.php?width=150&amp;height=130&amp;image={$siteroot}/uploads/tradesmanjobs/{$userPhotoDetArray.image}" title="workphoto" alt="workphoto"/>                                
                        </dd>
                    <section class="clear"></section>
                    </dl>
					{/if}
                    <section class="clear"></section>
                                        
                    <dl>
                        <dt><label>Work Photo : </label></dt>
                        <dd>
                        	<input type="file" id="image" name="image"  />     
                         </dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>
                    
                    <dl>
                        <dt><label>&nbsp;  </label></dt>
                        <dd>Note: Work photo width should be greater than or equal to 150 and work photo height should be greater than or equal to 130.</dd>
                        <section class="clear"></section>
                    </dl>
  					<section class="clear"></section>
                    
                    <section class="bt_save_wrapp">
                    	<input type="submit" value="Save" name="save_btn" id="save_btn" class="bt_save"/>
                        <input type="button" value="Cancel" name="cancel_btn" id="cancel_btn" class="bt_save" onclick="window.location.href='{$siteroot}/myaccount/myuploadedphoto'"/>
                    </section>

                </section>                
                </form>
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
{include file=$footer}
